﻿using VIT.Library.Web;
using VIT.Web.Controls;
using System.Collections.Generic;
using System;
using System.Text;
using System.Web.UI;
using System.Data;
using VIT.DataHelper;
using System.Web;
using System.Xml;

namespace VIT.Web.UI
{
    abstract public class VITPage : AbsVITPage
    {
        protected override void InitializeCulture()
        {
            string culture = Session["language"].ToString();
            if (!string.IsNullOrEmpty(culture))
            {
                UICulture = culture;
                Culture = culture;
            }
        }

        #region inherit interface
        public override string linkComponent(string ComponentName, string View = "", string Param = "")
        {
            return URL.linkComponent(ComponentName, View, Param);
        }
        public override void RedirectComponent(string ComponentName, string View = "", string Param = "")
        {
            Response.Redirect(URL.linkComponent(ComponentName, View, Param));
        }
        public override void TransferComponent(string ComponentName, string View = "", string Param = "")
        {
            Server.Transfer(URL.linkComponent(ComponentName, View, Param));
        }
        #endregion
    }
}
